﻿@using LoadIn.Maps.Bing.ViewModels;
@model BingMapsSettingsViewModel
<fieldset>
    <legend>@T("Bing Maps Settings")</legend>
    <div>
        <label for="ApiKey">@T("Bing Maps Api Key")</label>
        @Html.TextBoxFor(m => m.ApiKey, new { @class = "textMedium" })
        @Html.ValidationMessage("ApiKey", "*")
        <span class="hint">
            @T("Visit ")
            @Html.Link("www.microsoft.com/maps/developers", "http://www.microsoft.com/maps/developers")
            @T(" for more information on how to create your own Bing Maps developer account.")
        </span><span class="hint">
            @T("If you already have a Bing Maps account, visit ")
            @Html.Link("www.bingmapsportal.com", "http://www.bingmapsportal.com/")
            @T(" to retrieve your key.")
        </span>

        <label for="Mode">@T("Bing Maps User Mode")</label>
        @Html.DropDownListFor(model => model.Mode,
        new SelectList(new[] {
            "Static",
            "Dynamic"
        }, Model.Mode))
        @Html.ValidationMessageFor(model => model.Mode)
        <span class="hint">
            @T("The user mode of maps. One of the following values:")
            @T("* Static - Static Maps imagery.")
            @T("* Dynamic - Interactive SDK.")
        </span>
    </div>
</fieldset>